<%--
  Created by IntelliJ IDEA.
  User: 晓东√
  Date: 2024/9/2 0002
  Time: 10:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        @import url('bootstrap/css/bootstrap.css');
    </style>
</head>
<body>

   <h2>Request作用域:<%=pageContext.getRequest().getAttribute("hello")%></h2>
   <h2>Session作用域:<%=pageContext.getSession().getAttribute("hello")%></h2>
    <H2>${hello}</H2>
   <a href="hello.action?name=张三">点我</a>
   
   <form action="/user.action" method="post">
       <div class="form-group">
           <label for="userName">用户名</label>
           <input type="text" class="form-control" id="userName" name="userName"
                  placeholder="请输入用户名">
       </div>
       <div class="form-group">
           <label for="userPhone">电话</label>
           <input type="text" class="form-control" id="userPhone" name="userPhone"
                  placeholder="请输入电话号码">
       </div>
       <div class="form-group">
           <label>爱好</label>
           <input type="checkbox" class="form-control" name="hobby"  value="篮球" checked>篮球
           <input type="checkbox" class="form-control" name="hobby"  value="足球">足球
           <input type="checkbox" class="form-control" name="hobby" value="下棋">下棋
       </div>
       <button type="submit" class="btn btn-primary">Submit</button>
   </form>

   <form action="goods.action" method="POST" enctype="multipart/form-data">
       <label>商品名称</label> <input type="text" name="goodsName">
       <label>商品单价</label> <input type="number" name="price">
       <label>商品图片</label> <input type="file" name="goodsImage">
       <input type="submit" value="提交">
   </form>

    <a href="upload/6.jpg" download>下载</a>

</body>
</html>
